<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org/extras/dialect"
      layout:decorate="layout/layout_register"
>
<head>
    <title>注册成功</title>
    <meta charset="utf-8"/>
    <link rel="stylesheet" href="../../static/asset/css/base.min.css" th:href="@{/asset/css/base.min.css}"/>
</head>
<body>
<div layout:fragment="content" class="wrapper">
    <div class="container">
        <div class="row no-gutter">
            <div class="col-6 offset-3 text-center mt-5 pt-4">
                <th:block th:if="${#strings.isEmpty(errMsg)}">
                    <span>新用户帐号: <th:block th:text="${newUser.username}"></th:block></span>
                    <a th:href="@{${#strings.isEmpty(url)?'/login':url}}" class="btn btn-block btn-secondary" style="margin-top: 20px;">返回</a>
                </th:block>

                <div th:if="${!#strings.isEmpty(errMsg)}">
                    <span>创建新用户失败</span>
                    <div th:text="${errMsg}">错误信息</div>
                </div>

                <div class="form-group" th:if="${!#strings.isEmpty(appUrl)}">
                    <!--				<input type="submit" class="btn btn-block btn-primary" value="下载 APP" th:value="#{user.login}">-->
                    <a th:href="@{${appUrl}}" class="btn btn-block btn-primary" style="margin-top: 20px;">下载 APP</a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
